package com.job.sun.HomeWork0707;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-08 17:22:46
 */
public class TestWork {
    //有public 和默认修饰的成员变量和方法
    public static void main(String[] args) {
        Work worker02 =new Work("王五");
        Work worker01 =new Work("张三", 20);
        System.out.println(worker01.name+"\t"+worker01.age);
        System.out.println(worker02.name+"\t"+worker02.age);
        worker02.show1();
        worker01.show2();
    }
}